#ifndef CHECKPOINT_H
#define CHECKPOINT_H

namespace GAMEPLAY
{
    class Checkpoint
    {
    public:
        Checkpoint(const D3DXVECTOR3& p1, const D3DXVECTOR3& p2);
        ~Checkpoint();

        bool isCrossed(const D3DXVECTOR3& before, const D3DXVECTOR3& after) const;
        D3DXVECTOR3 getMiddle() const;
    private:
        // bornes du checkpoint
        D3DXVECTOR3 p1_;
        D3DXVECTOR3 p2_;

        // plan de coupure
        D3DXPLANE plane_;
    };

} // namespace GAMEPLAY
#endif  // CHECKPOINT_H
